package com.ctshk.rpc.tour.req.es;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.checkerframework.checker.formatter.qual.Format;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author lys
 * @create 2021-05-22
 */
@Data
@ApiModel(value="TripDetailsDateReq对象", description="行程详情团期查询请求对象")
public class TripDetailsDateReq implements Serializable {

    @NotNull(message = "行程id不能为空")
    @ApiModelProperty(value = "行程id")
    private Long id;

    @NotNull(message = "渠道id不能为空")
    @ApiModelProperty(value = "渠道id")
    private Long channelId;

    @NotNull(message = "日期不能为空")
    @ApiModelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;

}
